C++ Interview Questions and Answers
Related differences
Ques 126. Give 4 examples which belongs application layer in TCP/IP architecture?
FTP, TELNET, HTTP and TFTP
Ques 127. What?s the meaning of ARP in TCP/IP?
The "ARP" stands for Address Resolution Protocol. The ARP standard defines two basic message types: a request and a response. a request message contains an IP address and requests the corresponding hardware address; a replay contains both the IP address, sent in the request, and the hardware address.
Ques 128. What is a Makefile?
Makefile is a utility in Unix to help compile large programs. It helps by only compiling the portion of the program that has been changed.
A Makefile is the file and make uses to determine what rules to apply. make is useful for far more than compiling programs.
Ques 129. What is deadlock?
Deadlock is a situation when two or more processes prevent each other from running. Example: if T1 is holding x and waiting for y to be free and T2 holding y and waiting for x to be free deadlock happens.
Ques 130. What is semaphore?
Semaphore is a special variable, it has two methods: up and down. Semaphore performs atomic operations, which means ones a semaphore is called it can not be inturrupted.
The internal counter (= #ups - #downs) can never be negative. If you execute the ?down? method when the internal counter is zero, it will block until some other thread calls the ?up? method. Semaphores are use for thread synchronization.
" />
Most helpful rated by users:
- What is C++?
- What is function overloading and operator overloading?
- How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
- What is the difference between declaration and definition?
- What is the difference between realloc() and free()?